package controle;

import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;

import javax.swing.JOptionPane;
  
public class Teclas{  
  
     public void TeclasFuncao() {  
        KeyAdapter keyAdapter = new KeyAdapter() {  
            public void keyPressed(KeyEvent evt) {  
                if (evt.getKeyCode() == evt.VK_ENTER) {                      
                    JOptionPane.showMessageDialog(null,"Pedro");
                }  
            }  
        };
        
        
     
        
        
        
        
        
     }  
}
